package com.dhcc.bpm.alarm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiafayu
 * @since 2022-02-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ALARM_OBJ_GROUP")
@ApiModel(value="AlarmObjGroup对象", description="告警群组表")
public class AlarmObjGroup implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(
            value = "ID",
            type = IdType.ASSIGN_ID
    )
    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    private Long id;

    @ApiModelProperty(value = "群组编号")
    @TableField("OBJ_GROUP_NO")
    private String objGroupNo;

    @ApiModelProperty(value = "群组名称")
    @TableField("OBJ_GROUP_NAME")
    private String objGroupName;

    @ApiModelProperty(value = "群组类型01科技02业务03公共")
    @TableField("OBJ_GROUP_TYPE")
    private String objGroupType;

    @ApiModelProperty(value = "群组描述")
    @TableField("OBJ_GROUP_DESC")
    private String objGroupDesc;

    @ApiModelProperty(value = "对象编号")
    @TableField("OBJECTNO")
    private String objectno;

    @ApiModelProperty(value = "对象名称")
    @TableField("OBJECTNAME")
    private String objectname;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_USER")
    private String createUser;

    @ApiModelProperty(value = "创建部门")
    @TableField("CREATE_DEPT")
    private String createDept;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private String createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("UPDATE_USER")
    private String updateUser;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private String updateTime;

    @ApiModelProperty(value = "租户ID")
    @TableField("TENANT_ID")
    private String tenantId;

    @ApiModelProperty(value = "删除标识")
    @TableField("IS_DELETED")
    private String isDeleted;


}
